package com.it.flowable.dto;

import lombok.Data;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Data
public class ProcessInstanceVO {
    private String id;
    private String processDefinitionId;
    private String processDefinitionName;
    private String processDefinitionKey;
    private String startUserId;
    private Date startTime;
    private Date endTime;
    private String status; // active, completed, suspended
    private Map<String, Object> variables;
    private String businessKey;
    
    // 当前活动节点信息
    private List<ActivityInfo> currentActivities;
    
    @Data
    public static class ActivityInfo {
        private String activityId;
        private String activityName;
        private String activityType;
        private String assignee;
        private Date startTime;
    }
}